use crate::types::*;

pub const MI_SMALL_SIZE_MAX: usize = MI_SMALL_WSIZE_MAX as usize * size_of::<*mut ()>();
pub const MI_SEGMENT_SIZE: usize = 1 << MI_SEGMENT_SHIFT;
pub const MI_SEGMENT_MASK: usize = MI_SEGMENT_SIZE - 1;

unsafe impl Sync for mi_heap_t {}

unsafe impl Sync for mi_page_t {}
unsafe impl Sync for mi_tld_t {}


pub struct static_mi_segment_t_ptr(pub(crate) *mut mi_segment_t);
unsafe impl Sync for static_mi_segment_t_ptr {}
